var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(e, t) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(e, t) {
        e.__proto__ = t;
    } || function(e, t) {
        for (var o in t) t.hasOwnProperty(o) && (e[o] = t[o]);
    })(e, t);
}, function(e, t) {
    function n() {
        this.constructor = e;
    }
    o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, 
    new n());
}), a = this && this.__decorate || function(e, t, o, n) {
    var r, i = arguments.length, a = i < 3 ? t : null === n ? n = Object.getOwnPropertyDescriptor(t, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, o, n); else for (var c = e.length - 1; 0 <= c; c--) (r = e[c]) && (a = (i < 3 ? r(a) : 3 < i ? r(t, o, a) : r(t, o)) || a);
    return 3 < i && a && Object.defineProperty(t, o, a), a;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("AudioManager"), s = e("PopBackItemView"), c = e("GameData"), l = e("UIManager"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(t) {
    function e() {
        var e = null !== t && t.apply(this, arguments) || this;
        return e.timeLabel = null, e;
    }
    return i(e, t), e.prototype.init = function() {}, e.prototype.onClickSpeed = function() {
        r.default.getInstance().playAudio("按钮2"), this.pushEvent("钻石" + this.btnname), c.GD.diamond -= 20, 
        l.default.getInstance().barViews.forEach(function(e) {
            e.speedUp(180), e.refresh();
        }), this.closePnl();
    }, e.prototype.callback = function() {
        l.default.getInstance().barViews.forEach(function(e) {
            e.speedUp(180), e.refresh();
        }), this.closePnl();
    }, e.prototype.parseTime = function(e) {
        var t = "", o = Math.floor(e / 60);
        t += o < 10 ? "0" + o : o;
        e %= 60;
        return (t += ":") + (e < 10 ? "0" + e : e);
    }, e.prototype.update = function() {
        var e = Date.now();
        c.GD.speedTime > e ? this.timeLabel.string = "持续时间    " + this.parseTime(Math.floor((c.GD.speedTime - e) / 1e3)) : this.timeLabel.string = "持续时间    00：00";
    }, a([ p(cc.Label) ], e.prototype, "timeLabel", void 0), a([ u ], e);
}(s.default);

n.default = h;